import request from '@/utils/request'

const api_name = '/oj/submission'

export default {
  // 获取本人提交记录（不会很多，不用分页）
  getSubmissionList(problemId) {
    return request({
      url: `${api_name}/list/${problemId}`,
      method: 'post'
    })
  },
  // 根据提交记录ID查询提交记录详情
  getSubmissionById(submissionId) {
    return request({
      url: `${api_name}/detail/${submissionId}`,
      method: 'get'
    })
  }
}
